<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 4/22/24
 * Time: 2:54 PM
 */


namespace app\common\model\media_account;


use app\common\model\BaseModel;
use app\common\model\media\Media;


/**
 * MediaAccount模型
 * Class MediaAccount
 * @package app\common\model
 */
class MediaAuth extends BaseModel
{

    protected $name = 'media_auth';



    /**
     * 所属媒体
     *
     * @return \think\model\relation\HasOne
     */
    public function media()
    {
        return $this->hasOne(Media::class, 'id', 'media_id');
    }


}
